package com.ruoyi.liangshi.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店营业收银订单菜品上菜信息对象 biz_kc_ksc
 *
 * @author ruoyi
 * @date 2024-01-06
 */
@Data
public class BizKcKsc implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 菜品订单ID */
    private Long id;

    /** 收银Id信息 */
    @Excel(name = "收银Id信息")
    private Long bsId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long ssId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long scId;

    /** 菜品信息来自 arch_item */
    @Excel(name = "菜品信息来自 arch_item")
    private Long itemId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String tempItemName;

    /** 菜品单位信息 */
    @Excel(name = "菜品单位信息")
    private Long unitId;

    /** 菜品烹饪方法 */
    @Excel(name = "菜品烹饪方法")
    private String methodText;

    /**  */
    @Excel(name = "")
    private BigDecimal origQty;

    /**  */
    @Excel(name = "")
    private BigDecimal lastQty;

    /**  */
    @Excel(name = "")
    private Integer kitchenFlg;

    /** 准备信息：准备人员  */
    @Excel(name = "准备信息：准备人员 ")
    private Long prepareEmpId;

    /** 准备信息：准备时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "准备信息：准备时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date prepareFinishTime;

    /** 配菜信息：配菜人员 */
    @Excel(name = "配菜信息：配菜人员")
    private Long cookEmpId;

    /** 配菜信息：配菜时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "配菜信息：配菜时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cookFinishTime;

    /** 传菜信息：传菜人员 */
    @Excel(name = "传菜信息：传菜人员")
    private Long serveEmpId;

    /** 传菜信息：传菜时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "传菜信息：传菜时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serveFinishTime;

    /** 菜品开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "菜品开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date callUpTime;

    /**  */
    @Excel(name = "")
    private Long barcode;

    /**  */
    @Excel(name = "")
    private Long createShopId;

    /**  */
    @Excel(name = "")
    private Long modifierId;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /**  */
    @Excel(name = "")
    private Long creatorId;

    /** 是否同步到了bi表中(1:未同步,2:已同步) */
    @Excel(name = "是否同步到了bi表中(1:未同步,2:已同步)")
    private String isBiSync;

    @TableField(exist = false)
    private String itemName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    private Integer orderCallTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bsId", getBsId())
                .append("ssId", getSsId())
                .append("scId", getScId())
                .append("itemId", getItemId())
                .append("tempItemName", getTempItemName())
                .append("unitId", getUnitId())
                .append("methodText", getMethodText())
                .append("origQty", getOrigQty())
                .append("lastQty", getLastQty())
                .append("kitchenFlg", getKitchenFlg())
                .append("prepareEmpId", getPrepareEmpId())
                .append("prepareFinishTime", getPrepareFinishTime())
                .append("cookEmpId", getCookEmpId())
                .append("cookFinishTime", getCookFinishTime())
                .append("serveEmpId", getServeEmpId())
                .append("serveFinishTime", getServeFinishTime())
                .append("callUpTime", getCallUpTime())
                .append("barcode", getBarcode())
                .append("createShopId", getCreateShopId())
                .append("modifierId", getModifierId())
                .append("modifyTime", getModifyTime())
                .append("creatorId", getCreatorId())
                .append("createTime", getCreateTime())
                .append("isBiSync", getIsBiSync())
                .append("orderCallTime", getOrderCallTime())
                .toString();
    }
}
